import 'package:json_annotation/json_annotation.dart';
part 'my_gift_number.g.dart';

@JsonSerializable(explicitToJson: true)
class MyGiftModel {
  /// 编码
  String? code;

  /// 名称
  String? name;

  /// 图片名称
  String? iconUrl;

  /// 价格(分)
  String? price;

  /// 单位
  String? unit;

  /// 数量
  String? amount;

  /// 礼物所属项目名称
  String? programName;

  /// 礼物所属项目编码
  String? programCode;

  static MyGiftModel fromJson(Map<String, dynamic> srcJson) =>
      _$MyGiftModelFromJson(srcJson);

  Map<String, dynamic> toJson() => _$MyGiftModelToJson(this);
}
